from Base import Base
from selenium.webdriver.common.by import By


class Page2(Base):
    btn_loc = (By.XPATH, '/html/body/div[1]/div/section/section/main/div/form/div[3]/div/div/div/button/span')

    def btn(self):
        self.click(self.btn_loc)

    name_loc = (By.XPATH, '/html/body/div[1]/div/section/section/main/form/div[1]/div/div/div/input')

    def name(self):
        self.send_keys(self.name_loc, '123456')

    fen_loc = (By.XPATH, '/html/body/div[1]/div/section/section/main/form/div[2]/div/div/div/input')

    def fen(self):
        self.send_keys(self.fen_loc, '123')

    fuid_loc = (By.XPATH, '/html/body/div[1]/div/section/section/main/form/div[3]/div/div/div/input')

    def fuid(self):
        self.send_keys(self.fuid_loc, '1')

    tijiao_loc = (By.XPATH, '/html/body/div[1]/div/section/section/main/form/div[4]/div/div/div/input')

    def tj(self):
        self.click(self.fuid_loc)

    def tj_lj2(self):
        self.btn()
        self.name()
        self.fen()
        self.fuid()
        self.tj()
